package io.math;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;

//使用输入流读取特定类数据
public class Date2 {
    public static void main(String[] args) {
        try (DataInputStream a= new DataInputStream(new FileInputStream("D:\\workspace\\basic-chapter\\src\\io\\math\\a.txt"));){
            //只能拿指定类型
           int s= a.readByte();


        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
